package utils;

import lombok.Data;

/**
 * @description : TODO
 * @author: guangrui_hu
 * @date: 2023/1/13
 * @version:
 */
@Data
public class Result<T> {
    private String code;
    private String msg;
    private T data;
    public Result(StatusCode sc, T t){
        this.code = sc.getCode();
        this.msg = sc.getMessage();
        this.data = t;
    }
}
